package cqrtplm.dto.query;

import com.fasterxml.jackson.annotation.JsonProperty;
import cqrtplm.dto.RtCfgDspfDemandMainQueryDTO;
import lombok.Data;

/**
 * @description:
 * @author: zhengxiong.jiang
 * @createDate: 2025-07-21
 * @version: 1.0
 */
@Data
public class CrmApiQueryDTO {

    //客户编码
    private String clientCode = "";
    //sap编码
    private String sapclientcode = "";
    //客户机型
    private String clientModel = "";


    //物料编码
    @JsonProperty("MaterialCode")
    private String MaterialCode = "R210MR000QG-XDD301,RYC4002000-0V00000,R500DV200Q0V-BAR01,R210MT000Q0B-SAS01";
    //订单状态
    @JsonProperty("OrderState")
    private Integer OrderState;
    //订单类型
    @JsonProperty("OrderType")
    private String OrderType = "";
    //项次类型
    @JsonProperty("ItemType")
    private String ItemType = "";
    //工厂
    @JsonProperty("Factory")
    private String Factory = "";

    public CrmApiQueryDTO(){

    }

    public CrmApiQueryDTO(RtCfgDspfDemandMainQueryDTO dto){
        this.MaterialCode = dto.getmBomCode();
    }

}
